﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ShowPhone.aspx.cs" Inherits="crm_campaign_ShowPhone" %>

<%@ Register TagPrefix="MembersControl" Namespace="Controls" %>
<%@ Register TagPrefix="PubHead" TagName="header" Src="~/pub/crm/include/header.ascx" %>
<PubHead:header ID="header" runat="server"></PubHead:header>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">

    <title>活动列表</title>
    <script type="text/javascript" src="/pub/crm/js/calendar_en.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:HiddenField ID="pageNum" runat="server" />
        <div align="center">
            <table class="poptab">
                <tr>
                    <td class="title">
                        <div id="title">
                            <strong>市场活动管理</strong></div>
                    </td>
                </tr>
            </table>
        </div>
        <div align="center">
            
            <table wIDth="90%">

	  <tr bgcolor="#EEEEEE">
      <td wIDth="20%" align="right"><div align="left">手机号码：</div></td>
	  <td wIDth="30%" align="left"><div align="left">
	     <asp:TextBox ID="campaign_id" runat="server" />
	    </div></td>
	  <td wIDth="20%" align="left"><div align="left"> 唯一码：</div></td>
      <td wIDth="30%" align="left">
           <asp:TextBox ID="campaign_name" runat="server" />        </td>
	  </tr>
	    <tr  >
      <td wIDth="20%" align="right"> <div align="right"></div></td>
	  <td wIDth="30%" align="right">
	    
	    <div align="right"></div></td>
	  <td wIDth="20%" align="right"><div align="right"></div></td>
      <td wIDth="30%" align="left"><div align="right">
          <asp:Button ID="query" Text=" 查 询 " CssClass ="btn" runat="server" OnClick="query_Click" />
		 
      </div></td>
	  </tr>
      <!--根据需要把下面的先注掉 2012-6-20 李学明-->
                <asp:Panel ID="Panel1" runat="server" Visible="False">
                <tr>
                    <td align="right">
                        开始时间段：从</td>
                    <td align="left">
                        <input name="txtCreateDate_start" type="text" onfocus="this.blur()" onkeydown="tab()"
                            size="11" id="txtCreateDate_start" runat="server" />
                        <img id="calendarImg" alt="选择时间" src="/pub/crm/images/calendar_all.gif" width="25"
                            height="21" style="cursor: hand" onclick="setday(this, document.all.txtCreateDate_start)" />
                        &nbsp; &nbsp;&nbsp; 到 &nbsp; &nbsp;
                        <input name="txtCreateDate_end" type="text" onfocus="this.blur()" onkeydown="tab()"
                            size="11" id="txtCreateDate_end" runat="server" />
                        <img id="Img1" alt="选择时间" src="/pub/crm/images/calendar_all.gif" width="25" height="21"
                            style="cursor: hand" onclick="setday(this, document.all.txtCreateDate_end)" />&nbsp;
                    </td>
                </tr>
                <tr bgcolor="#EEEEEE">
                    <td align="right">
                        结束时间段：从</td>
                    <td align="left">
                        <input name="txtEndDate_start" type="text" onfocus="this.blur()" onkeydown="tab()"
                            size="11" id="txtEndDate_start" runat="server" />
                        <img id="Img2" alt="选择时间" src="/pub/crm/images/calendar_all.gif" width="25" height="21"
                            style="cursor: hand" onclick="setday(this, document.all.txtEndDate_start)" />
                        &nbsp; &nbsp;&nbsp; 到 &nbsp; &nbsp;
                        <input name="txtEndDate_end" type="text" onfocus="this.blur()" onkeydown="tab()"
                            size="11" id="txtEndDate_end" runat="server" />
                        <img id="Img3" alt="选择时间" src="/pub/crm/images/calendar_all.gif" width="25" height="21"
                            style="cursor: hand" onclick="setday(this, document.all.txtEndDate_end)" />&nbsp;
                    </td>
                </tr>
                </asp:Panel>
    
  </table>
            

            
            <asp:GridView ID="campaignList" CssClass="opertab" runat="server" DataKeyNames="Csi_uid"
                AllowPaging="True" PageSize="15" Width="90%" border="0" CellPadding="3" CellSpacing="1"
                AutoGenerateColumns="False" 
                OnPageIndexChanging="PageChanged" 
                onselectedindexchanged="campaignList_SelectedIndexChanged" 
                EnableModelValidation="True">
                <HeaderStyle CssClass="title" />
                <AlternatingRowStyle CssClass="dg_alternating" />
                <RowStyle CssClass="dg_item" />
                <Columns>
                     <asp:BoundField DataField="Csi_uid" ControlStyle-Width="10%" ItemStyle-Width="15%"
                        HeaderText="手机编号" HeaderStyle-ForeColor="white" >
<ControlStyle Width="10%"></ControlStyle>

<HeaderStyle ForeColor="White"></HeaderStyle>

<ItemStyle Width="15%"></ItemStyle>
                     </asp:BoundField>
                     <asp:BoundField DataField="Csi_cellphone" ControlStyle-Width="10%" ItemStyle-Width="20%"
                        HeaderText="手机号码" HeaderStyle-ForeColor="white" >
<ControlStyle Width="10%"></ControlStyle>

<HeaderStyle ForeColor="White"></HeaderStyle>

<ItemStyle Width="20%"></ItemStyle>
                     </asp:BoundField>
                   <%-- <asp:BoundField DataField="CAM_BEGINTIME" ControlStyle-Width="10%" ItemStyle-Width="10%"
                        HeaderText="活动开始时间" HeaderStyle-ForeColor="white" />
                    <asp:BoundField DataField="CAM_ENDTIME" ControlStyle-Width="10%" ItemStyle-Width="10%"
                        HeaderText="活动结束时间" HeaderStyle-ForeColor="white" />--%>
                  <%--  <asp:BoundField DataField="CAM_STATE_str" ControlStyle-Width="10%" ItemStyle-Width="10%"
                        HeaderText="活动状态" HeaderStyle-ForeColor="white" />--%>
                        <asp:BoundField DataField="Csi_unique_code" ControlStyle-Width="10%" ItemStyle-Width="20%"
                        HeaderText="唯一码" HeaderStyle-ForeColor="white" >
<ControlStyle Width="20%"></ControlStyle>

<HeaderStyle ForeColor="White"></HeaderStyle>

<ItemStyle Width="20%"></ItemStyle>
                     </asp:BoundField>
                      <asp:BoundField DataField="Ind_name" ControlStyle-Width="10%" ItemStyle-Width="10%"
                        HeaderText="用户名称" HeaderStyle-ForeColor="white" >
<ControlStyle Width="10%"></ControlStyle>

<HeaderStyle ForeColor="White"></HeaderStyle>

<ItemStyle Width="10%"></ItemStyle>
                     </asp:BoundField>
                </Columns>
                <pagertemplate>
                         <table width="100%">
                          <tr>
                            <td style="text-align:right">
                            共<asp:Label ID="lbrecordcount" runat="server" Text='<%# ((GridView)Container.Parent.Parent).Rows.Count %>' />条记录
                            第<asp:Label id="lblPageIndex" runat="server" text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1  %>' />页
                                共<asp:Label id="lblPageCount" runat="server" text='<%# ((GridView)Container.Parent.Parent).PageCount  %>' />页 
                                <asp:linkbutton id="btnFirst" runat="server" causesvalidation="False" commandargument="First" commandname="Page" text="首页" />
                              <asp:linkbutton id="btnPrev" runat="server" causesvalidation="False" commandargument="Prev" commandname="Page" text="上一页" />
                             <asp:linkbutton id="btnNext" runat="server" causesvalidation="False" commandargument="Next" commandname="Page" text="下一页" />                          
                             <asp:linkbutton id="btnLast" runat="server" causesvalidation="False" commandargument="Last" commandname="Page" text="尾页" />                                            
                             <asp:textbox id="txtNewPageIndex" runat="server" width="20px" text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1  %>' />
                             <asp:linkbutton id="btnGo" runat="server" causesvalidation="False" commandargument="-1" commandname="Page" text="GO" /><!-- here set the CommandArgument of the Go Button to '-1' as the flag -->
                             </td>
                          </tr>
                        </table>
                </pagertemplate>
            </asp:GridView>
        </div>
    </form>
</body>
</html>

